<form name="pwdForm" class="form-horizontal" role="form" ng-submit="save(pwd, $event)">
    <div class="modal-header">
        <h3 class="modal-title">{{ _('Change password') }}</h3>
    </div>
    <div class="modal-body">
            <div class="form-group">
                <label for="inputOld" class="col-sm-3 control-label">{{ _('Old password') }}</label>
                <div class="col-sm-9">
                    <input type="password" class="form-control" id="inputOld" ng-model="pwd.oldPwd"
                           required autofocus placeholder="{{ _('Old password') }}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputNew" class="col-sm-3 control-label">{{ _('New password') }}</label>

                <div class="col-sm-9">
                    <input type="password" class="form-control" id="inputNew" ng-model="pwd.newPwd" required placeholder="{{ _('New password') }}">
                </div>
            </div>
            <alert ng-repeat="alert in alerts" ng-attr-type="[[ alert.type ]]" close="closeAlert($index)">
                <span ng-bind="alert.msg"></span>
            </alert>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary">{{ _('Ok') }}</button>
        <button class="btn btn-danger" type="button" ng-click="cancel()">{{ _('Cancel') }}</button>
    </div>
</form>
